package com.itheima.dao;

import com.itheima.pojo.Experience;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ExperienceMapper {
    int batchInsertExper(@Param("list")List<Experience> experiences);

    int deleteByIds(List<Integer> ids);

    /**
     * 根据员工id查履历
     */
    @Select("select id,company,job,emp_id as empId , begin, end from experience where emp_id = #{id}")
    List<Experience> selectByEmpId(Integer id);
}
